<ui:composition template="/layout.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:dg="http://deegree.org/jsf"
	xmlns:dgc="http://java.sun.com/jsf/composite/deegree">
	<ui:define name="center">
		<h:panelGroup rendered="#{!logBean.loggedIn}">
			<ui:include src="../jsf/accessForbidden.xhtml" />
		</h:panelGroup>
		<h:panelGroup rendered="#{logBean.loggedIn}">
    Import GML feature collections into feature store '<h:outputText value="#{fsConfig.id}" />'<br />
			<br />
			<h:form>
				<div>
				<h:outputLabel styleClass="label"
					value="GML version" /> 
			    <h:selectOneMenu styleClass="liste"
					value="#{fsLoader.gmlVersion}">
					<f:selectItems value="#{fsLoader.availableGmlVersions}" />
				</h:selectOneMenu>
				<h:outputLabel styleClass="label"
					value="Id mode" /> 				
			    <h:selectOneMenu styleClass="liste"
					value="#{fsLoader.idGenMode}">
					<f:selectItems value="#{fsLoader.availableIdGenModes}" />
				</h:selectOneMenu>
				</div>
				<div>
				<br/>
				<br/>
	            <h:outputLabel styleClass="label"
					value="Import URL" /> 
				<h:inputText styleClass="liste" id="gmlUrl"
					value="#{fsLoader.url}" size="32" required="true"
					requiredMessage="#{labels.fsLoader_url_req}" />
				<h:commandButton styleClass="buttonCreateNew"
					value="#{labels.fsLoader_import}" action="#{fsLoader.importData}" onclick="show();" /></div>
			</h:form>
			<br />
			<br />
		</h:panelGroup>
	</ui:define>
</ui:composition>